﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Pay_My_Client.Properties;

namespace Pay_My_Client.Interface.Vente
{
    /// <summary>
    /// Logique d'interaction pour Grille.xaml
    /// </summary>
    public partial class Grille : UserControl
    {
        public Grille()
        {
            InitializeComponent();
        }

        private void UserControl_Initialized(object sender, EventArgs e)
        {
            for(int i = 0; i < Settings.Default.GridRow; i++)
                this.Cadrillage.RowDefinitions.Add(new RowDefinition());
            for (int i = 0; i < Settings.Default.GridCol; i++)
                this.Cadrillage.ColumnDefinitions.Add(new ColumnDefinition());
        }
    }
}
